#include<iostream>
using namespace std;
class CRectangle
{
protected:
	int w, h;
public:
	void setvalues(int a, int b);
public:
	int area();


};
class CTriangle
{
protected:
	int w, h;
public:
	void setvalues(int a, int b);
		int area();
};